<?php
Junction_FileCabinet::package("Junction_Db_Adodb");

/**
 * Factory to govern construction of Junction_Db_Common_Service's
 * 
 * <p>Use this factory to get instances of the database service.  The
 * goal is to centralize its instatiation to make it easy to swap 
 * services in the future.
 * 
 * TODO should this read from config info to load the right dao?
 *
 * @package junction.db.common
 */
class Junction_Db_Common_Factory {
	
	/**
	 * Create a new database service
	 *
	 * @param String $dsn a valid database connection string
	 * @return Junction_Db_Common_Service
	 */
	public static function construct($dsn) {
		 return new Junction_Db_Adodb_Service($dsn);
	}
}
?>